﻿namespace AutoDeployForSims.From18To10Cfg.Model
{
    public class AnalogEnt18
    {
        public int Id { get; set; }
        public string AnalogType { get; set; }
        public string AnalogName { get; set; }
        public int AnalogFlag { get; set; }
        public int AnalogOrder1 { get; set; }
        public int AnalogOrder2 { get; set; }

        public float AnalogRangeLower { get; set; }
        public float AnalogRangeUpper { get; set; }
        public float AnalogCoefficient { get; set; }
        public float AnalogLimitUpper { get; set; }
        public float AnalogLimitLower { get; set; }
        public float AnalogShuntLimit { get; set; }

        public int AnalogExtensionNum { get; set; }
        public string AnalogUnit { get; set; }

        public string Reserve1 { get; set; }
        public string Reserve2 { get; set; }
        public string Reserve3 { get; set; }
        public string Reserve4 { get; set; }

        public AnalogEnt18(int id, string analogType, string analogName, int analogFlag, int analogOrder1, int analogOrder2, float analogRangeLower, float analogRangeUpper, float analogCoefficient, float analogLimitUpper, float analogLimitLower, float analogShuntLimit, int analogExtensionNum, string analogUnit, string reserve1, string reserve2, string reserve3, string reserve4)
        {
            Id = id;
            AnalogType = analogType;
            AnalogName = analogName;
            AnalogFlag = analogFlag;
            AnalogOrder1 = analogOrder1;
            AnalogOrder2 = analogOrder2;
            AnalogRangeLower = analogRangeLower;
            AnalogRangeUpper = analogRangeUpper;
            AnalogCoefficient = analogCoefficient;
            AnalogLimitUpper = analogLimitUpper;
            AnalogLimitLower = analogLimitLower;
            AnalogShuntLimit = analogShuntLimit;
            AnalogExtensionNum = analogExtensionNum;
            AnalogUnit = analogUnit;
            Reserve1 = reserve1;
            Reserve2 = reserve2;
            Reserve3 = reserve3;
            Reserve4 = reserve4;
        }

        public override string ToString()
        {
            return "AnalogEnt18{" +
                    "id=" + Id +
                    ", analogType='" + AnalogType + '\'' +
                    ", analogName='" + AnalogName + '\'' +
                    ", analogFlag=" + AnalogFlag +
                    ", analogOrder1=" + AnalogOrder1 +
                    ", analogOrder2=" + AnalogOrder2 +
                    ", analogRangeLower=" + AnalogRangeLower +
                    ", analogRangeUpper=" + AnalogRangeUpper +
                    ", analogCoefficient=" + AnalogCoefficient +
                    ", analogLimitUpper=" + AnalogLimitUpper +
                    ", analogLimitLower=" + AnalogLimitLower +
                    ", analogShuntLimit=" + AnalogShuntLimit +
                    ", analogExtensionNum=" + AnalogExtensionNum +
                    ", analogUnit='" + AnalogUnit + '\'' +
                    ", Reserve1='" + Reserve1 + '\'' +
                    ", Reserve2='" + Reserve2 + '\'' +
                    ", Reserve3='" + Reserve3 + '\'' +
                    ", Reserve4='" + Reserve4 + '\'' +
                    '}';
        }
    }
}
